// import Vue from 'vue';
// import App from './App.vue';
// import router from './router';
// Vue.config.productionTip = false;

// const vm = new Vue({
//   router,
//   render: h => h(App),
// }).$mount('#app');

// console.log(vm);
window.addEventListener('click', () => {
  console.log('没有阻止冒泡');
});
import MiniVue from '../code/mini-vue/vue';

const vm = new MiniVue({
  el: '#app',
  data: {
    msg: 'hello',
    count: 100,
    html: '<h1>我是通过v-html注入的</h1>',
  },
  methods: {
    handleClick() {
      console.log('click me');
    },
  },
});

window.vm = vm;
